
COMMON_GET_CUR_DIR_NAME(TARGET_NAME)
#=======================================
file(GLOB_RECURSE SRCS *.cpp)
file(GLOB_RECURSE QRC ${CMAKE_CURRENT_SOURCE_DIR}/*.qrc)
#=======================================
include(qt_project)
configure_qt_project(MODULES Core Gui Xml UI UI_HEADERS ${UIS})

#=======================================
# Add a 'wsf' library target that will be built from the listed sources
add_executable(${TARGET_NAME} ${INCS} ${SRCS}
${QRC} ${UI_HEADERS}

)

IF(NOT EWX_EXT_OUTPUT_TO_SDK_DIR)
	configure_qt_conf(${TARGET_NAME})
ENDIF()
#=======================================
TARGET_LINK_LIBRARIES(${TARGET_NAME}
	Qt5::Core Qt5::Gui Qt5::Widgets 
	qt_shared_library_target
)

IF(WIN32)
	set_property(TARGET ${TARGET_NAME} PROPERTY 
		FOLDER "examples/Apps")

	COMMON_CREATE_VCPROJ_USERFILE(${TARGET_NAME})

	if (MSVC)
	target_compile_options(${TARGET_NAME} PRIVATE -wd4828 -wd4819)
	endif()

	#utf-8:编码cmake 设置
	target_compile_options(${TARGET_NAME} PRIVATE 
		"$<$<C_COMPILER_ID:MSVC>:/utf-8>"
		"$<$<CXX_COMPILER_ID:MSVC>:/utf-8>"
	)
ENDIF()


#=======================================